3.477 \(\int (c+d x+e x^2+f x^3) (a+b x^4) \, dx\)

Optimal. Leaf size=68 \[ a c x+\frac{1}{2} a d x^2+\frac{1}{3} a e x^3+\frac{1}{4} a f x^4+\frac{1}{5} b c x^5+\frac{1}{6} b d x^6+\frac{1}{7} b e x^7+\frac{1}{8} b f x^8 \]

[Out]

a*c*x + (a*d*x^2)/2 + (a*e*x^3)/3 + (a*f*x^4)/4 + (b*c*x^5)/5 + (b*d*x^6)/6 + (b*e*x^7)/7 + (b*f*x^8)/8

________________________________________________________________________________________

Rubi [A]  time = 0.0444891, antiderivative size = 68, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.043, Rules used = {1850} \[ a c x+\frac{1}{2} a d x^2+\frac{1}{3} a e x^3+\frac{1}{4} a f x^4+\frac{1}{5} b c x^5+\frac{1}{6} b d x^6+\frac{1}{7} b e x^7+\frac{1}{8} b f x^8 \]

Antiderivative was successfully verified.

[In]

Int[(c + d*x + e*x^2 + f*x^3)*(a + b*x^4),x]

[Out]

a*c*x + (a*d*x^2)/2 + (a*e*x^3)/3 + (a*f*x^4)/4 + (b*c*x^5)/5 + (b*d*x^6)/6 + (b*e*x^7)/7 + (b*f*x^8)/8

Rule 1850

Int[(Pq_)*((a_) + (b_.)*(x_)^(n_.))^(p_.), x_Symbol] :> Int[ExpandIntegrand[Pq*(a + b*x^n)^p, x], x] /; FreeQ[
{a, b, n}, x] && PolyQ[Pq, x] && (IGtQ[p, 0] || EqQ[n, 1])

Rubi steps

\begin{align*} \int \left (c+d x+e x^2+f x^3\right ) \left (a+b x^4\right ) \, dx &=\int \left (a c+a d x+a e x^2+a f x^3+b c x^4+b d x^5+b e x^6+b f x^7\right ) \, dx\\ &=a c x+\frac{1}{2} a d x^2+\frac{1}{3} a e x^3+\frac{1}{4} a f x^4+\frac{1}{5} b c x^5+\frac{1}{6} b d x^6+\frac{1}{7} b e x^7+\frac{1}{8} b f x^8\\ \end{align*}

Mathematica [A]  time = 0.0053242, size = 68, normalized size = 1. \[ a c x+\frac{1}{2} a d x^2+\frac{1}{3} a e x^3+\frac{1}{4} a f x^4+\frac{1}{5} b c x^5+\frac{1}{6} b d x^6+\frac{1}{7} b e x^7+\frac{1}{8} b f x^8 \]

Antiderivative was successfully verified.

[In]

Integrate[(c + d*x + e*x^2 + f*x^3)*(a + b*x^4),x]

[Out]

a*c*x + (a*d*x^2)/2 + (a*e*x^3)/3 + (a*f*x^4)/4 + (b*c*x^5)/5 + (b*d*x^6)/6 + (b*e*x^7)/7 + (b*f*x^8)/8

________________________________________________________________________________________

Maple [A]  time = 0.001, size = 55, normalized size = 0.8 \begin{align*} acx+{\frac{ad{x}^{2}}{2}}+{\frac{ae{x}^{3}}{3}}+{\frac{af{x}^{4}}{4}}+{\frac{bc{x}^{5}}{5}}+{\frac{bd{x}^{6}}{6}}+{\frac{be{x}^{7}}{7}}+{\frac{bf{x}^{8}}{8}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((f*x^3+e*x^2+d*x+c)*(b*x^4+a),x)

[Out]

a*c*x+1/2*a*d*x^2+1/3*a*e*x^3+1/4*a*f*x^4+1/5*b*c*x^5+1/6*b*d*x^6+1/7*b*e*x^7+1/8*b*f*x^8

________________________________________________________________________________________

Maxima [A]  time = 0.916526, size = 73, normalized size = 1.07 \begin{align*} \frac{1}{8} \, b f x^{8} + \frac{1}{7} \, b e x^{7} + \frac{1}{6} \, b d x^{6} + \frac{1}{5} \, b c x^{5} + \frac{1}{4} \, a f x^{4} + \frac{1}{3} \, a e x^{3} + \frac{1}{2} \, a d x^{2} + a c x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x^3+e*x^2+d*x+c)*(b*x^4+a),x, algorithm="maxima")

[Out]

1/8*b*f*x^8 + 1/7*b*e*x^7 + 1/6*b*d*x^6 + 1/5*b*c*x^5 + 1/4*a*f*x^4 + 1/3*a*e*x^3 + 1/2*a*d*x^2 + a*c*x

________________________________________________________________________________________

Fricas [A]  time = 1.38129, size = 142, normalized size = 2.09 \begin{align*} \frac{1}{8} x^{8} f b + \frac{1}{7} x^{7} e b + \frac{1}{6} x^{6} d b + \frac{1}{5} x^{5} c b + \frac{1}{4} x^{4} f a + \frac{1}{3} x^{3} e a + \frac{1}{2} x^{2} d a + x c a \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x^3+e*x^2+d*x+c)*(b*x^4+a),x, algorithm="fricas")

[Out]

1/8*x^8*f*b + 1/7*x^7*e*b + 1/6*x^6*d*b + 1/5*x^5*c*b + 1/4*x^4*f*a + 1/3*x^3*e*a + 1/2*x^2*d*a + x*c*a

________________________________________________________________________________________

Sympy [A]  time = 0.06287, size = 63, normalized size = 0.93 \begin{align*} a c x + \frac{a d x^{2}}{2} + \frac{a e x^{3}}{3} + \frac{a f x^{4}}{4} + \frac{b c x^{5}}{5} + \frac{b d x^{6}}{6} + \frac{b e x^{7}}{7} + \frac{b f x^{8}}{8} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x**3+e*x**2+d*x+c)*(b*x**4+a),x)

[Out]

a*c*x + a*d*x**2/2 + a*e*x**3/3 + a*f*x**4/4 + b*c*x**5/5 + b*d*x**6/6 + b*e*x**7/7 + b*f*x**8/8

________________________________________________________________________________________

Giac [A]  time = 1.08806, size = 76, normalized size = 1.12 \begin{align*} \frac{1}{8} \, b f x^{8} + \frac{1}{7} \, b x^{7} e + \frac{1}{6} \, b d x^{6} + \frac{1}{5} \, b c x^{5} + \frac{1}{4} \, a f x^{4} + \frac{1}{3} \, a x^{3} e + \frac{1}{2} \, a d x^{2} + a c x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x^3+e*x^2+d*x+c)*(b*x^4+a),x, algorithm="giac")

[Out]

1/8*b*f*x^8 + 1/7*b*x^7*e + 1/6*b*d*x^6 + 1/5*b*c*x^5 + 1/4*a*f*x^4 + 1/3*a*x^3*e + 1/2*a*d*x^2 + a*c*x